.class public Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;
.super Landroid/app/Activity;
.source "SourceFile"


# instance fields
.field private a:Landroid/widget/Spinner;

.field private b:Landroid/widget/Spinner;

.field private c:Landroid/widget/Spinner;

.field private d:Landroid/widget/Spinner;

.field private e:Landroid/widget/Spinner;

.field private f:Ljava/util/List;

.field private g:Ljava/util/List;

.field private h:Ljava/util/List;

.field private i:Landroid/content/SharedPreferences;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    .line 19
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 24
    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "FirstGestureType"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "SecondGestureType"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "ThirdGestureType"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    .line 25
    const-string v2, "FourthGestureType"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "FifthGestureType"

    aput-object v2, v0, v1

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    .line 19
    return-void
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 28
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 147
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .parameter

    .prologue
    .line 148
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    .line 153
    const-string v0, "none"

    :goto_0
    return-object v0

    .line 148
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/v;

    .line 149
    iget-object v2, v0, Lcom/TwinBlade/PicturePassword/v;->a:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 150
    iget-object v0, v0, Lcom/TwinBlade/PicturePassword/v;->b:Ljava/lang/String;

    goto :goto_0
.end method

.method private a()V
    .locals 3

    .prologue
    .line 75
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 76
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    .line 80
    new-instance v0, Landroid/widget/ArrayAdapter;

    .line 81
    const v2, 0x1090008

    .line 80
    invoke-direct {v0, p0, v2, v1}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    .line 82
    const v1, 0x1090009

    invoke-virtual {v0, v1}, Landroid/widget/ArrayAdapter;->setDropDownViewResource(I)V

    .line 84
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 85
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 86
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 87
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 88
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    invoke-virtual {v1, v0}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 89
    return-void

    .line 76
    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/v;

    .line 77
    iget-object v0, v0, Lcom/TwinBlade/PicturePassword/v;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method private b()V
    .locals 9

    .prologue
    const/4 v5, 0x4

    const/4 v4, 0x3

    const/4 v3, 0x2

    const/4 v2, 0x1

    const/4 v8, 0x0

    .line 92
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    move v1, v2

    .line 93
    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_3

    move v1, v2

    .line 97
    :goto_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_4

    .line 104
    :goto_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 105
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    move v1, v3

    .line 106
    :goto_3
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_6

    .line 110
    :goto_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v3, v0, :cond_7

    .line 118
    :cond_0
    :goto_5
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 119
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    move v1, v4

    .line 120
    :goto_6
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_9

    .line 124
    :goto_7
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v4, v0, :cond_a

    .line 132
    :cond_1
    :goto_8
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 133
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_e

    move v1, v5

    .line 134
    :goto_9
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_c

    .line 138
    :goto_a
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v5, v0, :cond_d

    .line 145
    :cond_2
    :goto_b
    return-void

    .line 94
    :cond_3
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setSelection(I)V

    .line 95
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setEnabled(Z)V

    .line 93
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_0

    .line 98
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v7, "none"

    invoke-interface {v6, v0, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 97
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_1

    .line 101
    :cond_5
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    invoke-virtual {v0, v2}, Landroid/widget/Spinner;->setEnabled(Z)V

    goto/16 :goto_2

    .line 107
    :cond_6
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setSelection(I)V

    .line 108
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setEnabled(Z)V

    .line 106
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_3

    .line 111
    :cond_7
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v6, "none"

    invoke-interface {v1, v0, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 110
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_4

    .line 114
    :cond_8
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    invoke-virtual {v0, v2}, Landroid/widget/Spinner;->setEnabled(Z)V

    goto/16 :goto_5

    .line 121
    :cond_9
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setSelection(I)V

    .line 122
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setEnabled(Z)V

    .line 120
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_6

    .line 125
    :cond_a
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v3, "none"

    invoke-interface {v1, v0, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 124
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_7

    .line 128
    :cond_b
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    invoke-virtual {v0, v2}, Landroid/widget/Spinner;->setEnabled(Z)V

    goto/16 :goto_8

    .line 135
    :cond_c
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setSelection(I)V

    .line 136
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    invoke-virtual {v0, v8}, Landroid/widget/Spinner;->setEnabled(Z)V

    .line 134
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_9

    .line 139
    :cond_d
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->g:Ljava/util/List;

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v2, "none"

    invoke-interface {v1, v0, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 138
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_a

    .line 142
    :cond_e
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    invoke-virtual {v0, v2}, Landroid/widget/Spinner;->setEnabled(Z)V

    goto/16 :goto_b
.end method

.method static synthetic b(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;)V
    .locals 0
    .parameter

    .prologue
    .line 91
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b()V

    return-void
.end method


# virtual methods
.method public finish()V
    .locals 2

    .prologue
    .line 224
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 225
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 226
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 227
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 228
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    invoke-virtual {v0}, Landroid/widget/Spinner;->getSelectedItem()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "none"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 229
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->setResult(I)V

    .line 233
    :goto_0
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    .line 234
    return-void

    .line 231
    :cond_0
    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->setResult(I)V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 9
    .parameter

    .prologue
    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 32
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 33
    const v0, 0x7f030003

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->setContentView(I)V

    .line 35
    const/4 v0, 0x4

    new-array v0, v0, [Lcom/TwinBlade/PicturePassword/v;

    new-instance v1, Lcom/TwinBlade/PicturePassword/v;

    const v2, 0x7f0900d0

    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "none"

    invoke-direct {v1, v2, v3}, Lcom/TwinBlade/PicturePassword/v;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v1, v0, v5

    .line 36
    new-instance v1, Lcom/TwinBlade/PicturePassword/v;

    const v2, 0x7f0900d1

    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "point"

    invoke-direct {v1, v2, v3}, Lcom/TwinBlade/PicturePassword/v;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v1, v0, v6

    .line 37
    new-instance v1, Lcom/TwinBlade/PicturePassword/v;

    const v2, 0x7f0900d2

    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "line"

    invoke-direct {v1, v2, v3}, Lcom/TwinBlade/PicturePassword/v;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v1, v0, v7

    .line 38
    new-instance v1, Lcom/TwinBlade/PicturePassword/v;

    const v2, 0x7f0900d3

    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string v3, "circle"

    invoke-direct {v1, v2, v3}, Lcom/TwinBlade/PicturePassword/v;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v1, v0, v8

    .line 35
    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->h:Ljava/util/List;

    .line 40
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    .line 42
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "FirstGestureData"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 43
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "SecondGestureData"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 44
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "ThirdGestureData"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 45
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "FourthGestureData"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 46
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "FifthGestureData"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 48
    const v0, 0x7f080008

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    .line 49
    const v0, 0x7f08000a

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    .line 50
    const v0, 0x7f08000c

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    .line 51
    const v0, 0x7f08000f

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    .line 52
    const v0, 0x7f080011

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Spinner;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    .line 53
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a()V

    .line 55
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ac;

    invoke-direct {v1, p0, v4}, Lcom/TwinBlade/PicturePassword/ac;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Lcom/TwinBlade/PicturePassword/ac;)V

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 56
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ae;

    invoke-direct {v1, p0, v4}, Lcom/TwinBlade/PicturePassword/ae;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Lcom/TwinBlade/PicturePassword/ae;)V

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 57
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    new-instance v1, Lcom/TwinBlade/PicturePassword/af;

    invoke-direct {v1, p0, v4}, Lcom/TwinBlade/PicturePassword/af;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Lcom/TwinBlade/PicturePassword/af;)V

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 58
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ad;

    invoke-direct {v1, p0, v4}, Lcom/TwinBlade/PicturePassword/ad;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Lcom/TwinBlade/PicturePassword/ad;)V

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 59
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    new-instance v1, Lcom/TwinBlade/PicturePassword/ab;

    invoke-direct {v1, p0, v4}, Lcom/TwinBlade/PicturePassword/ab;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;Lcom/TwinBlade/PicturePassword/ab;)V

    invoke-virtual {v0, v1}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 61
    const/4 v0, 0x5

    new-array v0, v0, [Landroid/widget/Spinner;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->a:Landroid/widget/Spinner;

    aput-object v1, v0, v5

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b:Landroid/widget/Spinner;

    aput-object v1, v0, v6

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->c:Landroid/widget/Spinner;

    aput-object v1, v0, v7

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->d:Landroid/widget/Spinner;

    aput-object v1, v0, v8

    const/4 v1, 0x4

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->e:Landroid/widget/Spinner;

    aput-object v2, v0, v1

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->f:Ljava/util/List;

    .line 63
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->b()V

    .line 65
    const v0, 0x7f08000d

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 66
    new-instance v1, Lcom/TwinBlade/PicturePassword/aa;

    invoke-direct {v1, p0}, Lcom/TwinBlade/PicturePassword/aa;-><init>(Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 72
    return-void
.end method
